const userInfo = {
  state: {
    id:null,
    loginName: null,
    name:null,
  },
  mutations: {
    SAVEUSERINFO: (state, obj) => {
      state.id = obj.id;
      state.loginName = obj.loginName;
      state.name = obj.name;
    }
  },
  actions: {
    saveUserInfo({ commit }, obj) {
      commit("SAVEUSERINFO", obj);
    }
  }
};

export default userInfo;
